Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: JManager Reference /
Chapter 1 - JManager Reference / Application-Defined Functions
/


MyStandardIn

Reads text input. When invoking the Java runtime environment using JMOpenSession, you must designate a callback function to direct any console input to the session. For example, this is how you would define your input function if you were to name it MyStandardIn:

SInt32 MyStandardIn(JMSessionRef session,
         char* buffer, 
         SInt32 maxBufferLength);
session
The session to receive the text input.
buffer
The buffer to hold the input.
maxBufferLength
The maximum length allowed by the buffer.
function result
The number of characters actually read (up to maxBufferLength) or -1 if an error occurred.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 DEC 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help